package com.bnz.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> {
    private long total;   //    总记录数
    private List<T> rows; //    数据集合
    private long totalPage;//   总页数
    private int page;     //    当前页

    public PageResult(long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }
}
